<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use App\Models\Rebate;
use Illuminate\Http\Request;

class RebateController extends Controller
{
    //分润详情
    function detail($id) {
        $rebate = Rebate::find($id);
        $order = new OrderController();
        $rebate->order = $order->detail($rebate->order_id);
        return $rebate;
    }
}
